package com.cinc.ebc.mm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 采购申请详情
 * @Author: jeecg-boot
 * @Date:   2022-03-20
 * @Version: V1.0
 */
@ApiModel(value="mm_purchase_requisition_infoModel对象", description="采购申请详情")
@Data
public class MmPurchaseRequisitionDetailModel {
    // 主表字段
    /**单据编号*/
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String reqNo;
    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "mm_purchase_reqstatus")
    @Dict(dicCode = "mm_purchase_reqstatus")
    @ApiModelProperty(value = "状态")
    private String mainStatus;
    /**申请类型*/
    @Excel(name = "申请类型", width = 15, dicCode = "mm_purchase_reqtype")
    @Dict(dicCode = "mm_purchase_reqtype")
    @ApiModelProperty(value = "申请类型")
    private String reqType;
    /**工厂*/
    @Excel(name = "工厂", width = 15, dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
    @Dict(dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
    @ApiModelProperty(value = "工厂")
    private String factoryId;
    /**申请人*/
    @Excel(name = "申请人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "申请人")
    private String applyEmpId;
    /**申请部门*/
    @Excel(name = "申请部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "申请部门")
    private String applyDeptId;
    /**申请日期*/
    @Excel(name = "申请日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "需求日期")
    private Date applyDate;
    /**项目*/
    @Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private String projectId;

    // 明细字段
    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**主表ID*/
    @ApiModelProperty(value = "主表ID")
    private String pid;
    /**行号*/
    @Excel(name = "行号", width = 15)
    @ApiModelProperty(value = "行号")
    private Integer lineNo;
    /**物料*/
    @Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "物料")
    private String materialId;
    /**物料编号*/
    @Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private String materialNo;
    /**物料描述*/
    @Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private String materialDesc;
    /**物料属性*/
    @Excel(name = "物料属性", width = 15, dictTable = "mdm_material_prop_value", dicText = "display_name", dicCode = "id")
    @Dict(dictTable = "mdm_material_prop_value", dicText = "display_name", dicCode = "id")
    @ApiModelProperty(value = "物料属性")
    private String materialProp;
    /**单位*/
    @Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private String unit;
    /**申请数量*/
    @Excel(name = "申请数量", width = 15)
    @ApiModelProperty(value = "申请数量")
    private java.math.BigDecimal reqQty;
    /**采购数量*/
    @Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private java.math.BigDecimal purQty;
    /**未采购数量*/
    @Excel(name = "未采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private java.math.BigDecimal unpurQty;
    /**需求日期*/
    @Excel(name = "需求日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "需求日期")
    private Date reqDate;
    /**用途*/
    @Excel(name = "用途", width = 15)
    @ApiModelProperty(value = "用途")
    private String uses;
    /**预估价格*/
    @Excel(name = "预估价格", width = 15)
    @ApiModelProperty(value = "预估价格")
    private java.math.BigDecimal price;
    /**期望供应商*/
    @Excel(name = "期望供应商", width = 15)
    @ApiModelProperty(value = "期望供应商")
    private String supplyId;
    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "mm_purchase_reqstatus")
    @Dict(dicCode = "mm_purchase_reqstatus")
    @ApiModelProperty(value = "状态")
    private String status;
    /**采购员*/
    @Excel(name = "采购员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "采购员")
    private String buyer;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**创建人*/
    @Excel(name = "创建人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**修改人*/
    @Excel(name = "修改人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**创建部门*/
    @ApiModelProperty(value = "创建部门")
    @Excel(name = "创建部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
    /**租户ID*/
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
    /**报价零部件ID*/
    @Excel(name = "报价零部件ID", width = 15)
    @ApiModelProperty(value = "报价零部件ID")
    private Integer quotePartsId;

}
